﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _03.FindTheBiggestOfThreeNumbers
{
    class biggestOfThreeNumbers
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Insert three integer numbers");
            Console.Write("a= ");
            int a = int.Parse(Console.ReadLine()); 
            Console.Write("b= ");
            int b = int.Parse(Console.ReadLine());
            Console.Write("c= ");
            int c = int.Parse(Console.ReadLine());
            Console.ForegroundColor = ConsoleColor.Red;
            if (a > b && a > c)
            {
                
                Console.WriteLine("a is the biggest number -> {0}", a);
            }
            else if(b>c && b>a)
            {
                Console.WriteLine("b is the biggest number -> {0}", b);    
            }
            else if (c > a && c > b)
            {
                Console.WriteLine("c is the biggest number -> {0}",c);
            }
            else if (a == b && a == c)
            {
                Console.WriteLine("These numbers are equal a = {0}; b = {1}; c = {2}", a, b, c);
            }
            else if (a == b && a > c)
            {
                Console.WriteLine("There are two biggest numbers - a = {0}; b = {1}", a, b);

            }
            else if (a == b && a < c)
            {
                Console.WriteLine("c is the biggest number -> {0}", c);
            }
            else if (a == c && a > b)
            {
                Console.WriteLine("There are two biggest numbers - a = {0}; c = {1}", a, c);

            }
            else if (a == c && a < b)
            {
                Console.WriteLine("b is the biggest number -> {0}", b);
            }
            else if (b == c && b > a)
            {
                Console.WriteLine("There are two biggest numbers - b = {0}; c = {1}", b, c);

            }
            else if (b == c && b < a)
            {
                Console.WriteLine("a is the biggest number -> {0}", a);
            }
            else
            {
                Console.WriteLine("Wrong");
            }

        }
    }
}
